package com.example.demo.service;

import com.example.demo.mapper.UserInfoMapper;
import com.example.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public  UserInfo getUserIoById(Integer id) {
        return userInfoMapper.selectById(id);
    }

    public UserInfo selectByName(String userName){
        return userInfoMapper.selectByName(userName);
    }
}
